<style type="text/css">
#title
{
background-color:#B8B8B8;
font-size:"14px";
font-color:"blue";
}
</style>
<h3>Admin Analytics</h3>
<p>
    <a style="color:blue" href="{{$base_index_url}}/analytics/admin/add_tracker">Add more trackers</a>
</p>
<fieldset>
    <legend>List of Trackers</legend>
    <table>
        <tr id="title">
            <td align="right" width="20px">Tracking ID</td>
            <td align="right" width="20%">Site ID</td>
            <td align="right" width="20%">Enable Page Tacking</td>
            <td align="right" width="20%">Ecommerce Tacking</td>
            <td align="right" width="20%">Event Tacking</td>
            <td align="center" width="20%" colspan="2">Action</td>
        </tr>
        {{foreach from=$trackers item=t}}
<!--<form method="post" action="{{$base_index_url}}/analytics/admin/edit/" />-->
        <tr>
            <td align="right">{{$t->tracking_id}}</td>
            <td align="right">{{$t->site_id}}</td>
            <td align="right">{{$t->enable_page_tracking}}</td>
            <td align="right">{{$t->ecommerce_tracking}}</td>
            <td align="right">{{$t->event_tracking}}</td>
<!--            <td align="right" width="10%"><input type="submit" id="submit" class="button" value="Edit" name="edit" />-->
            <td align="center">
                <a title="View this tracker" href="{{$base_index_url}}/analytics/admin/edit/views/{{$t->id}}">
                    <img src="{{$base_url}}application/modules/core/images/common/edit.png">
                </a>
            </td>
            <td align="center"><img src="{{$base_url}}application/modules/core/images/common/delete.png"
                     title="Delete this tracker" style="cursor:pointer"
                     onclick="if(confirm('Are you sure you want to delete the tracker with id {{$t->tracking_id}} ?'))
                     document.location = '{{$base_index_url}}/analytics/admin/edit/delete_tracker/{{$t->id}}';">
            </td>
        </tr>
<!--        <input type="hidden" name="edit_tracker" value="{{$t->id}}" />
</form>-->
        {{/foreach}}
    </table>
</fieldset>